package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("sound")
public class Sound implements Serializable {
    private ObjectId id;
    //语音用户id
    private Long userId;
    //语音用户信息地址
    private String soundUrl;
    //语音状态
    private Integer status = 1; //0 表示已经被其他用户收听  1表示未被其他用户收听
    //创建时间--日期
    private Long created;
    //消费时间
    private Long updated;
}
